import request from '@/utils/request'
const serviceName = 'Warehouse'
//  列表
export function queryGoods(data) {
  return request({
    url: serviceName + '/Good/QueryGoods',
    method: 'post',
    data
  })
}
//  详情
export function getGood(data) {
  return request({
    url: serviceName + '/Good/GetGood',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveGood(data) {
  return request({
    url: serviceName + '/Good/SaveGood',
    method: 'post',
    data
  })
}
//  删除
export function deleteGoods(data) {
  return request({
    url: serviceName + '/Good/DeleteGoods',
    method: 'post',
    data
  })
}

export default {
  queryGoods,
  getGood,
  saveGood,
  deleteGoods
}
